home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / TwinOpus2 / REXX / DOpus / Reread.rexx < prev    next >
OS/2 REXX Batch file  |  1994-10-13  |  825b  |  35 lines

  1. /*
  2.  *
  3.  * Reread current directory with TwinExpres from DOpus.
  4.  *
  5.  * (c) 1994 by K.P. van Beem (2:280/464.2, patrick.van.beem@aobh.xs4all.nl)
  6.  *
  7.  * Based on the DOpusLhaARexx package by Geoff Seeley (but you can better
  8.  * use GuiArc in stead of DOpus and a script, to deal with archives)
  9.  *
  10.  */
  11.  
  12. DOpusPort   = 'DOPUS.1'
  13.  
  14. if ~show(l,"rexxsupport.library") then        
  15.     call addlib("rexxsupport.library",0,-30,0)
  16. if showlist('Ports', DOpusPort) = 0 then do
  17.    say 'Directory Opus Arexx port not found. Aborting.'
  18.    exit
  19. end
  20.  
  21. address 'DOPUS.1'
  22. options results
  23.  
  24. /* Get the next directory */
  25. 'Status 6 -1'
  26. GetEntry Result
  27. FilePath = Result
  28. if left(FilePath,1) ~= '*' then do
  29.    TopText "You are not in a 'Twin' directory."
  30.    Busy off
  31.    exit
  32. end
  33. FilePath = SubStr(FilePath,2)
  34. address AREXX "Rexx:DOpus/ReadDir.rexx" FilePath
  35.